import { mapGetters } from 'vuex';

export default {
  computed: {
    ...mapGetters([
      'resourceIsShowPlatform',
      'resourceIsShowOrgan',
      'resourceShowId'
    ])
  },
  methods: {
    resourceShowChange(boolean, type) {
      switch (type) {
        case 'plat':
          this.$store.dispatch('PlatformChange', boolean);
          break;
        case 'organ':
          this.$store.dispatch('OriginzationChange', boolean);
          break;
        case 'id':
          this.$store.dispatch('IdChange', boolean);
          break;
      }
    }
  }
};
